home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2789 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: EU.net!sun4nl!xs4all!marketgraph!rvg
  2. From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BUG IN "STATUS" COMMAND FOUND
  5. Message-ID: <0036mbj60.alamito@marketgraph.xs4all.nl>
  6. Date: Mon, 5 Feb 96 12:54:00 CET
  7. References: <4f403j$qpm@jeack.apana.org.au>
  8. Reply-To: rvg@marketgraph.xs4all.nl
  9. X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
  10.  
  11. In <4f403j$qpm@jeack.apana.org.au> brett@jeack.apana.org.au (Brett Eden) 
  12. wrote:
  13.  
  14. >Hi All,
  15. >
  16. >I have located a bug in the status command, under workbench 3, and it goes 
  17. like this:
  18. >
  19. >7. System:> Status 2147483647
  20. >
  21. >Causes the shell from which the command was initiated, to freeze, until a ^C 
  22. is issued.
  23.  
  24. 0x7FFFFFFF is probably a magical value. No practical problem though.
  25.  
  26. >7. System:> Status 2147483648
  27. >
  28. >Returns an error "Process -2147483648 does not exist" - which, obviously, is 
  29. true, but where did it 
  30. >get the negative sign from?
  31.  
  32. They use a 'long', which is signed, thus 2147483648=0x80000000, which is <0 
  33. (signed).
  34.  
  35. >7. System:> Status 2147483649
  36. >
  37. >Returns an error "Process -2147483647 does not exist" - which again is true, 
  38. but -2147483647 wasn't 
  39. >the number I entered, was it?
  40.  
  41. It is in 'long' terms.
  42.  
  43. >7. System:> Status 2147483650
  44. >
  45. >Returns an error "Bad number" which indicates to us that 2147483649 is the 
  46. ceiling value.
  47.  
  48. Some range check.
  49.  
  50. >I know this bug plays no trouble in the workings of the system, but it's a 
  51. bug nonetheless, and will give Escom/AmiTech something to do =)
  52.  
  53. Let's give them time to do actual important stuff. For example; I believe 
  54. that OS3.1 can't show the size of 4.2Gb HD's correctly (not even talking 
  55. about 9 or 16Gb); since a ulong can't handle more than about 4.28 billion. If 
  56. only my bank used long's!)
  57.  
  58. BTW Status also doesn't work during a powerfailure. (in other words, what are 
  59. we talking about).
  60.  
  61. --
  62. Ruud van Gaal
  63. MarketGraph Visual Automation
  64. E-Mail                : rvg@marketgraph.xs4all.nl
  65. DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
  66. "...Works fascinates me. I could sit and watch it for hours..."
  67.  
  68.